package com.yunhe.policyfulfillment.policyful.repository;
import com.yunhe.policyfulfillment.policyful.domain.PolicyResult;
import com.yunhe.policyfulfillment.policyful.model.PolicyResultQueryCondition;
import com.yunhe.policyfulfillment.policyful.model.PolicyResultVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * @description 结果公示表
 * @author misty
 * @date 2021-09-17
 */
@Repository
public interface PolicyResultRepository {

    /**
     * 新增
     * @author misty
     * @date 2021/09/17
     **/
    int createPolicyResult(PolicyResult policyResult);

    /**
     * 新增
     * @author misty
     * @date 2021/09/17
     **/
    int createPolicyResultSelective(PolicyResult policyResult);

    /**
     * 刪除
     * @author misty
     * @date 2021/09/17
     **/
    int deletePolicyResultByPrimaryKey(@Param("id") int id);

    /**
     * 更新
     * @author misty
     * @date 2021/09/17
     **/
    int updatePolicyResultByPrimaryKey(PolicyResult policyResult);

    /**
     * 更新
     * @author misty
     * @date 2021/09/17
     **/
    int updatePolicyResultByPrimaryKeySelective(PolicyResult policyResult);

    /**
     * 根据主键查询
     * @author misty
     * @date 2021/09/17
     **/
    PolicyResult searchPolicyResultByPrimaryKey(@Param("id") int id);


    List<PolicyResultVo> findPolicyResultByCondition(PolicyResultQueryCondition policyResultQueryCondition);

    void publishTimedPolicyResult();

}